/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Testing;

import com.model.Majalah;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author tashiba
 */
public class TestMajalah {
public static void main(String args[]) {
        Majalah test = new Majalah();
        test.setJudul    ("Pemrograman Berorientasi Obyek");
        try {
            test.setIdKoleksi("Mj2201");
        } catch (Exception ex) {
            Logger.getLogger(TestMajalah.class.getName()).log(Level.SEVERE, null, ex);
        }
        test.setPenulis  ("Mukarto");
        test.setPenerbit ("Erlangga");
        test.setTahun    (1994);
        System.out.println("Judul       = "+test.getJudul());
        System.out.println("ID Koleksi  = "+test.getIdKoleksi());
        System.out.println("Penulis     = "+test.getPenulis());
        System.out.println("Penerbit    = "+test.getPenerbit());
        System.out.println("Tahun       = "+test.getTahun());
        System.out.println("Terlambat   = "+test.isTerlambat(20));
        System.out.println("Denda       = "+test.hitungDenda(20));
    }
}
